class SubGroup < ActiveRecord::Base
  has_paper_trail :version => :paper_trail_version, :versions => :paper_trail_versions
  # attr_accessible :title, :body
  belongs_to :group
  belongs_to :sub, class_name: "Group", foreign_key: "subgroup_id"

  def sub
    @sub ||= Group.find(self.subgroup_id)
  end

end
